package GUI;
import Pantallas.PantallaInicio;
import net.rim.device.api.system.KeyListener;
import net.rim.device.api.ui.Keypad;
/**
 * 
 * @author ARMGARCES
 *
 */
public final class ShortcutHandler implements KeyListener {

    public boolean keyChar(char key, int status, int time) {
    	if ( key == 'R' ){
            // REGISTRAR TELEFONO...
    		PantallaInicio.registrarTelf();
        }
        return false;
    }

    public boolean keyDown(int keycode, int time) {
        if (Keypad.KEY_ESCAPE == Keypad.key(keycode)) {
                        // Consume the event.
                        // Here I'm consuming the event for the escape key
            return true;
        }
                //let the system to pass the event to another listener.
        return false;
    }

    public boolean keyRepeat(int keycode, int time) {
        return false;
    }

    public boolean keyStatus(int keycode, int time) {
        return false;
    }

	public boolean keyUp(int keycode, int time) {
		// TODO Auto-generated method stub
		return false;
	}
}